<!DOCTYPE html>
<!--


    **** BEWARE **** The code of this demo website is really messy due to designing it while coding.


-->


<html lang="en">
<head>

    <!-- Basic information -->
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <!-- Site information -->
    <title>Vuebar</title>

    <!-- Favicon -->
    <link rel="apple-touch-icon" sizes="180x180" href="./site/favicon/apple-touch-icon.png">
    <link rel="icon" type="image/png" sizes="32x32" href="./site//favicon/favicon-32x32.png">
    <link rel="icon" type="image/png" sizes="16x16" href="./site//favicon/favicon-16x16.png">
    <link rel="manifest" href="./site//favicon/manifest.json">
    <link rel="mask-icon" href="./site//favicon/safari-pinned-tab.svg" color="#3079f4">
    <link rel="shortcut icon" href="./site//favicon/favicon.ico">
    <meta name="msapplication-config" content="./site//favicon/browserconfig.xml">
    <meta name="theme-color" content="#ffffff">

    <!-- Pure CSS -->
    <link rel="stylesheet" href="./site/css/pure-min.css">

    <!-- Styles -->
    <style>
        :root {
            font-family: 'Segoe UI', 'Arial', sans-serif;
            margin: 0;
        }
        body {
            margin: 0;
            overflow: hidden;
            padding: 0;
            background-color: #3079f4;
            -webkit-overflow-scrolling: touch;
        }


        code {
            background-color: #eee;
            background-color: #f0f6ff;
            display: inline-block;
            font-family: monospace, monospace, sans-serif;
        }

        code.full {
            display: block;
            padding: 10px 20px;
        }

        pre {
            margin: 0;
        }

        ul {
            list-style-type: none;
            padding: 0;
            margin: 0;
        }

        li {
            list-style-type: none;
            padding: 0;
            margin: 0;
            margin-bottom: 10px;
            display: block;
            position: relative;
            padding-left: 22px;


        }

        li svg {
            position: absolute;
            top: 2px;
            left: 0;

        }

        li svg path {
            fill: #3079f4;
        }

        a {
            text-decoration: none;
            color: #1c69ec;
            font-weight: 600;
        }

        #app {
            display: block;
            margin: 0 auto;
        }
        .main-header {
            background-color: white;
            background-color: #f0f6ff;
            margin-top: 50px;
            max-width: 650px;
            padding-top: 10px;
            padding-bottom: 50px;
        }

        .mod-ms-autohiding {
            -ms-overflow-style: -ms-autohiding-scrollbar;
        }

        .pkg-link {

            text-decoration: none;
            vertical-align: baseline;
            display: inline-block;
            font-weight: 600;
            font-size: 13px;
            padding: 5px 10px;
            border-radius: 2px;
            color: #3079f4;
            line-height: 1;

            opacity: .6;

            transition: opacity 100ms ease-out;
        }

        .pkg-link:hover {
            opacity: 1;
        }


        #GitHub_Logo {
            position: relative;
            top: 4px;
            display: inline-block;
            width: 15px;
            height: 20px;
            margin-right: 2px;
            opacity: .2;
            transition: opacity 100ms ease-out;
        }


        #npm_logo {
            display: inline-block;
            width: 20px;
            position: relative;
            top: 6px;
            height: 20px;
            margin-right: 2px;
            opacity: .2;
            transition: opacity 100ms ease-out;
        }

        #usercap {
            position: relative;
            top: 2px;
        }


        .pkg-link:hover #npm_logo, .pkg-link:hover  #GitHub_Logo{
            opacity: 1;
        }

        .main-title {
            font-size: 47px;
            font-weight: 700;
            color: #3079f4;
            color: #1c69ec;
            margin: 0;
            line-height: 1;
            margin-top: 40px;
        }

        .main-title span {
            font-size: 35px;
            color: #abc8f9;
            display: inline-block;
            transform: translate(-11px, -20px) rotate(-15deg);
        }

        .main-desc {
            color: #3079f4;
            font-size: 15px;
            margin-top: 30px;
            margin-bottom: 40px;
        }

        .main-header-btn {
            color: #3079f4;
            font-size: 15px;
            vertical-align: middle;
            text-decoration: none;
            display: inline-block;
            background-color: #3079f4;
            background-color: #4d8bf5;
            padding: 5px 20px;
            padding-top: 6px;
            color: white;
            transition: background-color 100ms ease-out;
            margin-top: 5px;
            width: 100%;
            max-width: 330px;
        }


        .main-header-btn:hover {
            background-color: #3079f4;
        }


        .main-header-btn.mod-browserstack {
            padding: 4px 20px;
            padding-bottom: 5px;
        }

        .main-header-btn.mod-browserstack img {
            margin-left: 5px;
            vertical-align: bottom;
            display: inline-block;
            width: auto;
            height: 24px;
            position: relative;
            top: -0px;
        }


        .main-header-btn.mod-browserstack .bs-tested {
            position: relative;
            top: -2px;
        }


        #GGather_Logo_Small {
            width: 13px;
            vertical-align: middle;
            position: relative;
            top: -2px;
            display: inline-block;
            margin-left: 8px;
            margin-right: 3px;
        }



        .container-title {
            margin: 0;
            text-align: left;
            margin-top: 30px;
            padding: 0px;
            font-weight: 700;
            font-size: 25px;
            line-height: 1.4;
            padding-left: 15px;
            padding-left: 19px;
            padding-top: 30px;
            padding-bottom: 15px;
            background-color: white;
            color: #f0f6ff;
            color: #3079f4;
            color: #1c69ec;
            background-color: #f0f6ff;
        }

        .container-title.mod-table  {
        }

        .container {
            background-color: white;
            margin-bottom: 30px;
            padding: 20px;
            color: #3079f4;
            font-size: 14px;
            text-align: left;
        }


        .container h3 {
            margin-top: 40px;
            font-size: 16px;
            line-height: 1.2;
            font-weight: 600;
            color:  #1c69ec;
        }

        .container h3.first {
            margin-top: 0;
        }

        .container p {
            margin-top: 5px;
            line-height: 1.3;
            margin-bottom: 20px;
            color: #3079f4;
        }

        .container.mod-table {
            padding: 0;
        }


        .pure-button {
            transition: background-color 100ms ease-out;
            background-color: #f0f6ff;
            background-color: #4d8bf5;
            color: #3079f4;
            color: white;
            font-weight: 500;
        }
        .pure-button:hover {
            background: #3079f4;
        }

        .pure-button:focus {
            background: #3079f4;
            box-shadow: none;
        }

        .pure-button:active {
            background:#3079f4;
            box-shadow: none;
        }

        .pure-button.button-xsmall {
            padding: 1px 5px 2px 5px;
            vertical-align: baseline;
            font-size: 12px;
            position: relative;
            top: -1px;
        }


        .pure-table {
            border-color: #0d4cb9;
            border: none;
        }
        .pure-table tbody {
            border-color: #1f5eca;
            background-color: white;
        }

        .pure-table thead {
            background-color: #1c67e4;
            background-color: #f0f6ff;
            color: white;
            color: #3079f4;
            border: none;
            padding-top: 20px;
            padding-left: 5px;
            padding-right: 5px;
            padding-bottom: 20px;
        }
        .pure-table td {
            border-color: #3079f4;
            color: #3079f4;
            border: none;
        }
        .pure-table td.small {
            font-size: 12px;
        }

        .pure-table td:nth-of-type(1) {
            font-weight: 500;
            font-family: monospace, monospace, sans-serif;
            padding-left: 20px;
        }
        .pure-table td:nth-of-type(2) {
            font-weight: 400;
            font-size: 12px;
            opacity: .7;
        }
        .pure-table td:nth-of-type(3) {
            font-weight: 400;
            font-size: 12px;
            opacity: .7;
            white-space: nowrap;
            font-family: monospace, monospace, sans-serif;
        }
        .pure-table td:nth-of-type(4) {
            font-size: 12px;
            padding-right: 20px;
        }
        .pure-table th {
            border-top: 1px solid #0d4cb9;
            border-color: #0d4cb9;
            border: none;
        }


        .pure-table th:nth-of-type(1) {
            padding-left: 20px;
        }
        .pure-table th:nth-of-type(2) {
            font-size: 12px;
        }
        .pure-table th:nth-of-type(3) {
            font-size: 12px;
        }
        .pure-table th:nth-of-type(4) {
            padding-right: 20px;
        }
        .pure-table tr {
            border-top: 1px solid #3079f4;
            border-color: #f0f6ff;
            text-align: left;
            padding-top: 20px;
            padding-left: 5px;
            padding-right: 5px;
            padding-bottom: 20px;
        }
        .pure-table tr:first-of-type {
            border-top: none;
        }

        .el1full {
            display: block;
            width: auto;
            height: 100vh;
        }



        .el1full > .vb-dragger {
            width: 12px;
            right: 0;
        }



        .el1full > .vb-dragger .vb-dragger-styler {
            backface-visibility: hidden;
            transform: rotate3d(0,0,0,0);
            transition:
                background-color 100ms ease-out,
                margin 100ms ease-out,
                height 100ms ease-out;
            background-color: rgba(255,255,255,.1);
            margin: 5px 5px 5px 0;
            border-radius: 20px;
            height: calc(100% - 10px);
            display: block;
        }



        .el1full.vb.vb-scrolling-phantom >  .vb-dragger .vb-dragger-styler {
            background-color: rgba(255,255,255,.3);
        }

        .el1full > .vb-dragger:hover .vb-dragger-styler {
            background-color: rgba(255,255,255,.5);
            margin: 0px;
            height: 100%;
        }

        .el1full.vb.vb-dragging >  .vb-dragger .vb-dragger-styler {
            background-color: rgba(255,255,255,.5);
            margin: 0px;
            height: 100%;
        }

        .el1full.vb.vb-dragging-phantom >  .vb-dragger .vb-dragger-styler {
            background-color: rgba(255,255,255,.5);
        }



        .fade-enter-active, .fade-leave-active {
          transition: opacity .5s
        }
        .fade-enter, .fade-leave-to /* .fade-leave-active in <2.1.8 */ {
          opacity: 0
        }

        .main-content-container {
            max-width: 650px;
            margin: 0 auto;
            text-align: center;
            position: relative;
            z-index: 5;
            padding-bottom: 50px;
        }

        @media (max-width: 1100px){

            .main-content-container {
                padding-right: 200px;
            }
        }


        @media (max-width: 890px){

            .main-content-container {
                padding-left: 30px;
                padding-right: 30px;
            }
        }


        .navigation {
            position: fixed;
            top: 50px;
            right: 50px;
            z-index: 1;
            text-align: right;
        }

        @media (max-width: 890px){

            .navigation {
                position: static;
                padding: 30px;
            }
        }

        .navigation-inner ol {
            list-style-type: decimal;
            padding: 0;
            margin: 0;
        }

        .navigation-inner li {
            display:list-item;
            list-style-position: outside;
            list-style-position: inside;
            list-style-type: decimal;
            list-style-type: none;
            color: rgba(255,255,255,.5);
            padding: 0;
            margin: 0;
            line-height: 1;
            margin-bottom: 5px;
        }

        .navigation-inner a {
            text-decoration: none;
            font-size: 13px;
            font-weight: 400;
            color: rgba(255,255,255,.5);
            line-height: 1;

        }

        .navigation-inner a span {
            opacity: .3;

        }

        .navigation-inner a:hover {
            color: rgba(255,255,255,.7);
        }

        .el1 {
            height: 200px;
            background-color: #f0f6ff;
            color: #3079f4;
            margin: 0 auto;
        }




        .el1.vb > .vb-dragger {
            z-index: 2;
            width: 12px;
            right: 0;
        }

        .el1.vb > .vb-dragger > .vb-dragger-styler {
            backface-visibility: hidden;
            transform: rotate3d(0,0,0,0);
            transition:
                background-color 100ms ease-out,
                margin 100ms ease-out,
                height 100ms ease-out;
            background-color: rgba(48, 121, 244,.1);
            margin: 5px 5px 5px 0;
            border-radius: 20px;
            height: calc(100% - 10px);
            display: block;
        }

        .el1.vb.vb-scrolling-phantom > .vb-dragger > .vb-dragger-styler {
            background-color: rgba(48, 121, 244,.3);
        }

        .el1.vb > .vb-dragger:hover > .vb-dragger-styler {
            background-color: rgba(48, 121, 244,.5);
            margin: 0px;
            height: 100%;
        }

        .el1.vb.vb-dragging > .vb-dragger > .vb-dragger-styler {
            background-color: rgba(48, 121, 244,.5);
            margin: 0px;
            height: 100%;
        }

        .el1.vb.vb-dragging-phantom > .vb-dragger > .vb-dragger-styler {
            background-color: rgba(48, 121, 244,.5);
        }

        .el2 {
        }


        .content-btn {
            background-color: #32ab76;
            outline-color:  #41b883;
            border-radius: 2px 2px 0 0;
            padding: 15px 30px;
            border: none;
            box-shadow: none;
            color: white;
            font-size: 17px;
            font-weight: 500;
            z-index: 100;
        }
        .content-padding {
            padding: 20px;
        }

        .comment {
            opacity: .3;
        }


        .madeby {
            position: absolute;
            top: -25px;
            /*
            background-color: rgba(240, 246, 255, 0.6);*/
            right: 0;
        }

        .madeby .pkg-link {
            margin: 0;
            padding: 0;
            font-weight: 400;
            color: white;
            opacity: .3;
        }

    </style>



</head>
<body>

    <!-- All The Magic Happens Here -->
    <div id="app" >



    <div class="el1full" v-bar>
    <div class="el2full" >


    <nav class="navigation">
        <div class="navigation-inner">

            <ol>
                <li><a href="#start">Vuebar</a></li>
                <li>
                    <a target="_blank" href="https://github.com/DominikSerafin/vuebar" title="Pull requests, stars and forks welcome!">GitHub</a>
                    / <a target="_blank" href="https://www.npmjs.com/package/vuebar">NPM</a>
                </li>
                <li><a href="#about">About <span>01</span> </a></li>
                <li><a href="#installation">Installation <span>02</span> </a></li>
                <li><a href="#usage">Usage <span>03</span> </a></li>
                <li><a href="#styling">Styling <span>04</span> </a></li>
                <li><a href="#options">Customization Options <span>05</span> </a></li>
                <li><a href="#options-classes">Customization Options  <span>06</span><br>  (custom classes) &nbsp;&nbsp;&nbsp;&nbsp; </a></li>
                <li><a href="#examples">Examples <span>07</span> </a></li>
                <li><a href="#credits">Contributing &amp; Credits <span>08</span> </a></li>

            </ol>

        </div>
    </nav>

    <div class="main-content-container" id="start">












        <header class="main-header">



            <!--

            <div class="madeby">


            <a class="pkg-link" href="https://serafin.io/">



            <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="usercap" x="0px" y="0px" viewbox="0 0 64 64" style="enable-background:new 0 0 64 64;" xml:space="preserve" width="16" height="16">
            <linearGradient id="SVGID_1__43964" gradientUnits="userSpaceOnUse" x1="37" y1="30.5" x2="37" y2="35.6992" spreadMethod="reflect">
                <stop offset="0" style="stop-color:#6DC7FF"/>
                <stop offset="1" style="stop-color:#E6ABFF"/>
            </linearGradient>
            <circle style="fill:url(#SVGID_1__43964);" cx="37" cy="33" r="2.5"/>
            <linearGradient id="SVGID_2__43964" gradientUnits="userSpaceOnUse" x1="27" y1="30.5" x2="27" y2="35.6992" spreadMethod="reflect">
                <stop offset="0" style="stop-color:#6DC7FF"/>
                <stop offset="1" style="stop-color:#E6ABFF"/>
            </linearGradient>
            <circle style="fill:url(#SVGID_2__43964);" cx="27" cy="33" r="2.5"/>
            <linearGradient id="SVGID_3__43964" gradientUnits="userSpaceOnUse" x1="32" y1="38" x2="32" y2="42.2573" spreadMethod="reflect">
                <stop offset="0" style="stop-color:#6DC7FF"/>
                <stop offset="1" style="stop-color:#E6ABFF"/>
            </linearGradient>
            <path style="fill:url(#SVGID_3__43964);" d="M28,38c0,2.209,1.791,4,4,4s4-1.791,4-4H28z"/>
            <linearGradient id="SVGID_4__43964" gradientUnits="userSpaceOnUse" x1="32" y1="5.5" x2="32" y2="58.6801" spreadMethod="reflect">
                <stop offset="0" style="stop-color:#1A6DFF"/>
                <stop offset="1" style="stop-color:#C822FF"/>
            </linearGradient>
            <circle style="fill:url(#SVGID_4__43964);" cx="32" cy="52" r="2"/>
            <linearGradient id="SVGID_5__43964" gradientUnits="userSpaceOnUse" x1="32" y1="5.5" x2="32" y2="58.6801" spreadMethod="reflect">
                <stop offset="0" style="stop-color:#1A6DFF"/>
                <stop offset="1" style="stop-color:#C822FF"/>
            </linearGradient>
            <path style="fill:url(#SVGID_5__43964);" d="M44.802,39.644c0.373-0.842,0.665-1.725,0.866-2.644H47c2.757,0,5-2.243,5-5  c0-2.415-1.721-4.434-4-4.899V24c0-7.796-5.608-14.299-13-15.708V7.999C35,6.896,34.104,6,33.001,6h-2.002  C29.896,6,29,6.896,29,7.999v0.295C24.09,9.23,19.849,12.426,17.621,17H16c-2.206,0-4,1.794-4,4s1.794,4,4,4v2.101  c-2.279,0.465-4,2.484-4,4.899c0,2.757,2.243,5,5,5h1.332c0.202,0.918,0.494,1.802,0.866,2.644C14.618,43.459,12,49.015,12,55v3h40  v-3C52,49.015,49.382,43.459,44.802,39.644z M20,34v-5h1c1.654,0,3-1.346,3-3v-1h7c1.902,0,3.626-0.765,4.889-2H39  c0.552,0,1,0.448,1,1v2c0,1.654,1.346,3,3,3h1v5c0,6.617-5.383,12-12,12S20,40.617,20,34z M50,32c0,1.654-1.346,3-3,3h-1v-1v-1h1  c0.553,0,1-0.447,1-1s-0.447-1-1-1h-1v-2h1C48.654,29,50,30.346,50,32z M32,10c7.72,0,14,6.28,14,14v3h-1h-1h-1  c-0.552,0-1-0.448-1-1v-2c0-1.654-1.346-3-3-3h-1.685C37.75,20.089,38,19.074,38,18v-1H19.882C22.365,12.705,26.961,10,32,10z   M14,21c0-1.103,0.897-2,2-2h19.899c-0.465,2.279-2.484,4-4.899,4H16C14.897,23,14,22.103,14,21z M22,25v1c0,0.552-0.448,1-1,1h-1  h-1h-1v-2H22z M18,35h-1c-1.654,0-3-1.346-3-3s1.346-3,3-3h1v2h-1c-0.553,0-1,0.447-1,1s0.447,1,1,1h1v1V35z M50,56h-6v-2h-2v2H22  v-2h-2v2h-6v-1c0-5.25,2.233-10.136,6.162-13.56C22.643,45.374,27.016,48,32,48s9.357-2.626,11.838-6.56  C47.767,44.864,50,49.75,50,55V56z"/>
            </svg>

                made by Dominik
            </a>

            </div>
            -->



            <h1 class="main-title">Vuebar</h1>


            <div>



            <a class="pkg-link" href="https://github.com/DominikSerafin/vuebar" title="Pull requests, stars and forks welcome!">


                <svg version="1.1" id="GitHub_Logo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="438.549px" height="438.549px" viewbox="0 0 438.549 438.549" style="enable-background:new 0 0 438.549 438.549;" xml:space="preserve"> <g> <path d="M409.132,114.573c-19.608-33.596-46.205-60.194-79.798-79.8C295.736,15.166,259.057,5.365,219.271,5.365
                        c-39.781,0-76.472,9.804-110.063,29.408c-33.596,19.605-60.192,46.204-79.8,79.8C9.803,148.168,0,184.854,0,224.63
                        c0,47.78,13.94,90.745,41.827,128.906c27.884,38.164,63.906,64.572,108.063,79.227c5.14,0.954,8.945,0.283,11.419-1.996
                        c2.475-2.282,3.711-5.14,3.711-8.562c0-0.571-0.049-5.708-0.144-15.417c-0.098-9.709-0.144-18.179-0.144-25.406l-6.567,1.136
                        c-4.187,0.767-9.469,1.092-15.846,1c-6.374-0.089-12.991-0.757-19.842-1.999c-6.854-1.231-13.229-4.086-19.13-8.559
                        c-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559
                        c-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-0.951-2.568-2.098-3.711-3.429c-1.142-1.331-1.997-2.663-2.568-3.997
                        c-0.572-1.335-0.098-2.43,1.427-3.289c1.525-0.859,4.281-1.276,8.28-1.276l5.708,0.853c3.807,0.763,8.516,3.042,14.133,6.851
                        c5.614,3.806,10.229,8.754,13.846,14.842c4.38,7.806,9.657,13.754,15.846,17.847c6.184,4.093,12.419,6.136,18.699,6.136
                        c6.28,0,11.704-0.476,16.274-1.423c4.565-0.952,8.848-2.383,12.847-4.285c1.713-12.758,6.377-22.559,13.988-29.41
                        c-10.848-1.14-20.601-2.857-29.264-5.14c-8.658-2.286-17.605-5.996-26.835-11.14c-9.235-5.137-16.896-11.516-22.985-19.126
                        c-6.09-7.614-11.088-17.61-14.987-29.979c-3.901-12.374-5.852-26.648-5.852-42.826c0-23.035,7.52-42.637,22.557-58.817
                        c-7.044-17.318-6.379-36.732,1.997-58.24c5.52-1.715,13.706-0.428,24.554,3.853c10.85,4.283,18.794,7.952,23.84,10.994
                        c5.046,3.041,9.089,5.618,12.135,7.708c17.705-4.947,35.976-7.421,54.818-7.421s37.117,2.474,54.823,7.421l10.849-6.849
                        c7.419-4.57,16.18-8.758,26.262-12.565c10.088-3.805,17.802-4.853,23.134-3.138c8.562,21.509,9.325,40.922,2.279,58.24
                        c15.036,16.18,22.559,35.787,22.559,58.817c0,16.178-1.958,30.497-5.853,42.966c-3.9,12.471-8.941,22.457-15.125,29.979
                        c-6.191,7.521-13.901,13.85-23.131,18.986c-9.232,5.14-18.182,8.85-26.84,11.136c-8.662,2.286-18.415,4.004-29.263,5.146
                        c9.894,8.562,14.842,22.077,14.842,40.539v60.237c0,3.422,1.19,6.279,3.572,8.562c2.379,2.279,6.136,2.95,11.276,1.995
                        c44.163-14.653,80.185-41.062,108.068-79.226c27.88-38.161,41.825-81.126,41.825-128.906
                        C438.536,184.851,428.728,148.168,409.132,114.573z"/>
                </g></svg>

                    vuebar
            </a>

           <!-- <img src="https://img.shields.io/github/stars/DominikSerafin/vuebar.svg?style=flat-square"> -->

            <a class="pkg-link" href="https://www.npmjs.com/package/vuebar">

                <svg version="1.1" id="npm_logo" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="540px" height="210px" viewbox="0 0 18 7">
                <path fill="#CB3837" d="M0,0h18v6H9v1H5V6H0V0z M1,5h2V2h1v3h1V1H1V5z M6,1v5h2V5h2V1H6z M8,2h1v2H8V2z M11,1v4h2V2h1v3h1V2h1v3h1V1H11z"/>
                <polygon fill="#FFFFFF" points="1,5 3,5 3,2 4,2 4,5 5,5 5,1 1,1 "/>
                <path fill="#FFFFFF" d="M6,1v5h2V5h2V1H6z M9,4H8V2h1V4z"/>
                <polygon fill="#FFFFFF" points="11,1 11,5 13,5 13,2 14,2 14,5 15,5 15,2 16,2 16,5 17,5 17,1 "/>
                </svg>


                vuebar
            </a>

            </div>




            <p class="main-desc">Vue 2 directive for custom scrollbar that uses native scroll behavior. <br>Lightweight, performant, customizable and without dependencies.</p>

            <!-- <img src="https://unsplash.it/4900/4900"> -->

            <div>

                <a class="main-header-btn mod-ggather" href="https://ggather.com/" >

                    Used successfully in production on


                    <svg id="GGather_Logo_Small" data-name="GGather Logo Small" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 438 668"><title>GGather Logo Small</title><path fill="#ffffff" class="cls-1" d="M376.29,0h-33a60.31,60.31,0,0,0-54.49,34.46l-35,73.69a14.65,14.65,0,0,0,13.23,20.92h71.62c19.15,0,29.42,22.53,16.85,37-69.92,80.39-190.26,216-251.8,287-5.68,6.56-16.18-.2-12.36-8C120.5,385.68,180.81,268,209.8,208.45a7.42,7.42,0,0,0-6.68-10.67H115c-17.16,0-26.44-20.1-15.32-33.16l99-116.32C214.94,29.28,201.42,0,176.42,0H61.71A61.31,61.31,0,0,0,.4,61.31V636.42c0,29.36,36.28,43.16,55.79,21.23L173.86,525.41a60.42,60.42,0,0,1,90.28,0L381.81,657.65c19.52,21.93,55.79,8.13,55.79-21.23V61.31A61.31,61.31,0,0,0,376.29,0Z"/></svg>


                    <strong> GGather</strong>

                </a>
            </div>

            <div>
                <a class="main-header-btn  mod-browserstack" href="https://www.browserstack.com/" target="_blank" >

                    <span class="bs-tested">Tested with the help of</span>

                    <img src="./site/img/browserstack-header-logo.svg" alt="BrowserStack Logo">



                </a>

            </div>



        </header>




        <h2 class="container-title" id="about">About</h2>
        <div class="container">



            <!-- <h3 class="first">About</h3> -->

            <p>The first Vue 2 custom scrollbar library that only enhances scrolling instead of reimplementing it with custom scroll behavior. Created by <a href="https://serafin.io/">Dominik Serafin.</a></p>

            <p>It uses native scroll events to detect and synchronize scrollbar position. This makes possible to hack into the native events of scrolling element without hassle.</p>

            <p> It was built for <a href="https://ggather.com/">GGather.com</a> where it plays nicely with a lot of dynamic content changes and most importantly infinite scrolling and drag and drop features. And now after testing, fixes, improvements and added customization options - it's ready to be shared with the world.</p>


            <ul>

                <li>
                    <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
                    Directive instead of a custom component, which saves a lot of headaches.
                </li>


                <li>
                    <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
                    Native scroll events, no jankiness, no hijacking.
                </li>

                <li>
                    <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
                    Simple to use, lightweight &amp; performant.
                </li>


                <li>
                    <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
                    Works in browser and also build (webpack, etc.) environments.
                </li>


                <li>
                    <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
                    Compatible with all major browsers including IE9 and above.
                </li>


                <li>
                    <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
                    Useful customization options.
                </li>

                <li>
                    <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
                    No 3rd party dependencies.
                </li>

                <li>
                    <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
                    Tested in production.
                </li>


            </ul>



        </div>





        <h2 class="container-title" id="installation">Installation</h2>
        <div class="container">



            <h3 class="first">NPM</h3>

<code class="full"><pre>npm install vuebar --save</pre></code>

            <h3>CDN</h3>

<code class="full"><pre>https://unpkg.com/vuebar</pre></code>


            <h3>Manual</h3>

            <p>Download the .js file directly from latest commit and include manually in your project</p>

<a class="pure-button" target="_blank" href="https://raw.githubusercontent.com/DominikSerafin/vuebar/master/vuebar.js" download>vuebar.js</a>


            <h3>Alternative #1: Include in browser</h3>
<code class="full"><pre>&#x3C;script src=&#x22;vuebar.js&#x22;&#x3E;&#x3C;/script&#x3E;</pre></code>

            <h3>Alternative #2: Include in your build</h3>

<code class="full"><pre>import Vuebar from 'vuebar';
Vue.use(Vuebar);</pre></code>

        </div>



        <h2 class="container-title"  id="usage">Usage</h2>
        <div class="container">



            <h3 class="first">Basic Markup</h3>

<code class="full"><pre>
<strong>&#x3C;div v-bar&#x3E;</strong> <span class="comment">&#x3C;!-- el1 --&#x3E;</span>
  <strong>&#x3C;div&#x3E;</strong> <span class="comment">&#x3C;!-- el2 --&#x3E;</span>
    <span class="comment">&#x3C;!-- your scrollable content --&#x3E;</span>
  <strong>&#x3C;/div&#x3E;</strong>
  <span class="comment">&#x3C;!-- dragger will be automatically added here --&#x3E;</span>
<strong>&#x3C;/div&#x3E;</strong>
</pre></code>



            <h3>Markup with example options</h3>

<code class="full"><pre>
<strong>&#x3C;div v-bar=&#x22;{
    preventParentScroll: true,
    scrollThrottle: 30,
}&#x22;&#x3E;</strong> <span class="comment">&#x3C;!-- el1 --&#x3E;</span>
  <strong>&#x3C;div&#x3E;</strong> <span class="comment">&#x3C;!-- el2 --&#x3E;</span>
     <span class="comment">&#x3C;!-- your scrollable content --&#x3E;</span>
  <strong>&#x3C;/div&#x3E;</strong>
  <span class="comment">&#x3C;!-- dragger will be automatically added here --&#x3E;</span>
<strong>&#x3C;/div&#x3E;</strong>
</pre></code>



            <h3>How it works</h3>

            <p>Every Vuebar scrollable content needs to be wrapped in parent element <code>el1</code> that hides the native browser scrollbar of the second parent element <code>el2</code> and it also contains the custom scrollbar element (referenced further as <code>dragger</code>) which gets appended automatically on the Vuebar initialization. </p>

            <p><strong>New in 0.0.6:</strong> Instead of hiding the scrollbar using <code>el1</code> Vuebar now has a <code>useScrollbarPseudo</code> feature that hides the scrollbar using pseudo element selector <code>::-webkit-scrollbar</code>. Due to browsers limitations for now it works only on desktop Chrome &amp; desktop Safari at the moment.</p>

            <p>The Vuebar internals listen to <code>el2</code> scroll event and synchronize <code>dragger</code> position when you scroll. And vice versa - when you directly use <code>dragger</code> it listens to mouse events to detect the position of dragger and sets scroll position of <code>el2</code>.</p>

            <p>Other than setting the scroll position when you use <code>dragger</code> the Vuebar doesn't interfere at all with native browser scrolling and you can listen to scroll/wheel/etc. events as you would normally do.</p>

            <p>This also means the scroll behavior will remain unchanged. You'll still be able to use mouse wheel click scrolling or touch scrolling with momentum. It doesn't try to reimplement the scrolling from scratch like most of similar libraries try (with bad results).</p>



            <h3>Public methods (experimental &amp; work in progress)</h3>

            <p>You can access them from your component context: <code>this.$vuebar</code>. Alternatively you can access them from your main Vue instance: <code>Vue.vuebar</code>. </p>

            <p>Every method needs to have passed Vuebar scroll container element as the first argument. You can do that easily using <code>$refs</code>.</p>

            <ul>

                <li>
                    <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
                    <code>initScrollbar(DOM Element, options)</code>
                </li>

                <li>
                    <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
                    <code>getState(DOM Element)</code>
                </li>

                <li>
                    <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
                    <code>refreshScrollbar(DOM Element, options)</code>
                </li>

                <li>
                    <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
                    <code>destroyScrollbar(DOM Element)</code>
                </li>




            </ul>




            <h3>Tips</h3>



            <ul>
                <li>
                    <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
                    If you want to access internal Vuebar state (like scrollbar height, scrollbar top or even <code>dragger</code> element reference) then you can access <code>_vuebarState</code> property of element 1 with v-bar directive. Or you can use <code>getState</code> method.
                </li>

                <li>
                    <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
                    Element <code>el1</code> has programmatically added styles <code>position: relative</code> and <code>overflow: hidden</code> so you can't change them without using <code>!important</code>. But you shouldn't do it anyway - your scrollbar will break.
                </li>

                <li>
                    <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
                    Element <code>el2</code> has programmatically added styles <code>overflow-x: hidden</code>, <code>overflow-y: scroll</code>, <code>height: 100%</code>, <code>-ms-overflow-style: scrollbar</code>  and <code>width</code> which value depends on browser.
                </li>

                <li>
                    <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
                    If the original browser scrollbar is floated/overlayed (<code>-ms-autohiding-scrollbar</code>, touch devices, etc.) then <code>el2</code> also has <code>padding-right</code> changed.
                </li>

                <li>
                    <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
                    Similar thing with <code>dragger</code> - it has programmatically added styles <code>position: absolute</code> and <code>height</code> with <code>top</code> that have values in pixels relative to scroll position.
                </li>

            </ul>




        </div>






        <h2 class="container-title"  id="styling">Styling</h2>
        <div class="container">

        Every Vuebar element has a child <code>dragger</code> element. That element also has its own child - a <code>dragger-styler</code> element that's purely there for you to style it any way you want. You can also style the original <code>dragger</code> element - just remember it has <code>position: absolute</code> style always applied and <code>height</code> and <code>top</code> styles dynamically added &amp; changed when scrolling.


        <h3>Default Style</h3>

        <p>If you were looking for this library it means you want to style your scrollbars as you want - so Vuebar doesn't include default styles internally. But if you e.g. want to quickly try or understand how you should style Vuebar scrollbars then below are prepared default styles that you can copy-paste into your project.  </p>

<code class="full"><pre>
.vb &#x3E; .vb-dragger {
    z-index: 5;
    width: 12px;
    right: 0;
}

.vb &#x3E; .vb-dragger &#x3E; .vb-dragger-styler {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: rotate3d(0,0,0,0);
    transform: rotate3d(0,0,0,0);
    -webkit-transition:
        background-color 100ms ease-out,
        margin 100ms ease-out,
        height 100ms ease-out;
    transition:
        background-color 100ms ease-out,
        margin 100ms ease-out,
        height 100ms ease-out;
    background-color: rgba(48, 121, 244,.1);
    margin: 5px 5px 5px 0;
    border-radius: 20px;
    height: calc(100% - 10px);
    display: block;
}

.vb.vb-scrolling-phantom &#x3E; .vb-dragger &#x3E; .vb-dragger-styler {
    background-color: rgba(48, 121, 244,.3);
}

.vb &#x3E; .vb-dragger:hover &#x3E; .vb-dragger-styler {
    background-color: rgba(48, 121, 244,.5);
    margin: 0px;
    height: 100%;
}

.vb.vb-dragging &#x3E; .vb-dragger &#x3E; .vb-dragger-styler {
    background-color: rgba(48, 121, 244,.5);
    margin: 0px;
    height: 100%;
}

.vb.vb-dragging-phantom &#x3E; .vb-dragger &#x3E; .vb-dragger-styler {
    background-color: rgba(48, 121, 244,.5);
}
</pre></code>

        </div>









        <h2 class="container-title  mod-table"  id="options">Customization options</h2>
        <div class="container  mod-table">


            <table class="pure-table">
                <thead>
                    <tr>
                        <th>Name</th>
                        <th>Value<br> Type</th>
                        <th>Value<br> Default</th>
                        <th>Description</th>
                    </tr>
                </thead>

                <tbody>


                    <tr>
                        <td>preventParentScroll</td>
                        <td>Boolean</td>
                        <td>false</td>
                        <td>Prevent parent taking over scrolling after reaching bottom or top of Vuebar element. This feature is in beta - right now it supports only detecting mouse wheel event and doesn't support touch scrolling. Pull requests welcome.</td>
                    </tr>

                    <tr>
                        <td>unselectableBody</td>
                        <td>Boolean</td>
                        <td>true</td>
                        <td>Disable user select on body when using dragger. If this value is false then user select will be only disabled on Vuebar element.</td>
                    </tr>


                    <tr>
                        <td>useScrollbarPseudo</td>
                        <td>Boolean</td>
                        <td>false</td>
                        <td><strong>This is an experimental feature that works only in desktop Google Chrome and  desktop Apple Safari.</strong> Instead of hiding scrollbars by using hidden overflow this feature will hide them using <code>::-webkit-scrollbar</code> pseudo element selectors.</td>
                    </tr>

                    <tr>
                        <td>overrideFloatingScrollbar</td>
                        <td>Boolean</td>
                        <td>true</td>
                        <td>Show dragger if the element has a floating/overlaying scrollbar. It happens on touch devices and on IE &amp; Edge with <code>-ms-autohiding-scrollbar</code>.</td>
                    </tr>

                    <tr>
                        <td>scrollThrottle</td>
                        <td>Integer</td>
                        <td>10</td>
                        <td>How frequently in ms should dragger position calculations take place on scroll event. Setting this above 30 will make dragger position refresh choppy, but may help with performance in extreme situations.</td>
                    </tr>

                    <tr>
                        <td>draggerThrottle</td>
                        <td>Integer</td>
                        <td>10</td>
                        <td>How frequently in ms should scroll position update when using dragger. Setting this above 30 will make scroll synchronization choppy, but may help with performance in extreme situations.</td>
                    </tr>


                    <tr>
                        <td>observerThrottle</td>
                        <td>Integer</td>
                        <td>100</td>
                        <td>How frequently in ms should scroll position update when there's a DOM change detected from <a href="https://developer.mozilla.org/en/docs/Web/API/MutationObserver" target="_blank">MutationObserver</a>. It fires in 3 scenarios; <code>subtree</code> change, <code>childList</code> change and <code>characterData</code> change.</td>
                    </tr>



                    <tr>
                        <td>resizeRefresh</td>
                        <td>Boolean</td>
                        <td>true</td>
                        <td>Refresh dragger positions on window resize.</td>
                    </tr>


                    <tr>
                        <td>resizeDebounce</td>
                        <td>Integer</td>
                        <td>100</td>
                        <td>Debounce value in ms controlling how frequently resize refresh is fired. Relevant only if resizeRefresh is enabled.</td>
                    </tr>


                    <tr>
                        <td class="small">scrollingPhantomDelay</td>
                        <td>Integer</td>
                        <td>1000</td>
                        <td>How long in ms should phantom scrolling class stay applied to element.</td>
                    </tr>


                    <tr>
                        <td class="small">draggingPhantomDelay</td>
                        <td>Integer</td>
                        <td>1000</td>
                        <td>How long in ms should phantom dragging class stay applied to element. Warning - setting this below value of scrollThrottle may have some unforeseen effects.</td>
                    </tr>


                </tbody>
            </table>

        </div>



        <h2 class="container-title mod-table"  id="options-classes">Customization options (custom classes)</h2>
        <div class="container  mod-table">


            <table class="pure-table">
                <thead>
                    <tr>
                        <th>Name</th>
                        <th>Value<br> Type</th>
                        <th>Value<br> Default</th>
                        <th>Description</th>
                    </tr>
                </thead>

                <tbody>

                    <tr>
                        <td class="small">el1Class</td>
                        <td>String</td>
                        <td>'vb'</td>
                        <td>Element 1 class.</td>
                    </tr>

                    <tr>
                        <td class="small">el1ScrollVisibleClass</td>
                        <td>String</td>
                        <td>'vb-visible'</td>
                        <td>Added dynamically when the scrollbar is visible.</td>
                    </tr>

                    <tr>
                        <td class="small">el1ScrollInvisibleClass</td>
                        <td>String</td>
                        <td>'vb-invisible'</td>
                        <td>Added dynamically when the scrollbar is invisible.</td>
                    </tr>

                    <tr>
                        <td class="small">el1ScrollingClass</td>
                        <td>String</td>
                        <td>'vb-scrolling'</td>
                        <td>Added dynamically on scrolling.</td>
                    </tr>

                    <tr>
                        <td class="small">el1ScrollingPhantomClass</td>
                        <td>String</td>
                        <td>'vb-scrolling-phantom'</td>
                        <td>Added dynamically on scrolling and removed after value of scrollingPhantomDelay.</td>
                    </tr>

                    <tr>
                        <td class="small">el1DraggingClass</td>
                        <td>String</td>
                        <td>'vb-dragging'</td>
                        <td>Added dynamically when the dragger is dragged or pressed.</td>
                    </tr>

                    <tr>
                        <td class="small">el1DraggingPhantomClass</td>
                        <td>String</td>
                        <td>'vb-dragging-phantom'</td>
                        <td>Added dynamically when the dragger is dragged or pressed and removed after value of draggingPhantomDelay.</td>
                    </tr>

                    <tr>
                        <td class="small">el2Class</td>
                        <td>String</td>
                        <td>'vb-content'</td>
                        <td>Element 2 class.</td>
                    </tr>

                    <tr>
                        <td class="small">draggerClass</td>
                        <td>String</td>
                        <td>'vb-dragger'</td>
                        <td>Dragger class.</td>
                    </tr>

                    <tr>
                        <td class="small">draggerStylerClass</td>
                        <td>String</td>
                        <td>'vb-dragger-styler'</td>
                        <td>Dragger styler class.</td>
                    </tr>


                </tbody>
            </table>

        </div>














        <h2 class="container-title"  id="examples">Examples</h2>
        <div class="container">

        <p>Other than examples below - this site itself is an example of Vuebar usage. If you look to the right it has a custom white scrollbar that showcases itself pretty nicely.</p>




        <h3>1. JSFiddle</h3>

        <div>
            <iframe width="100%" height="450" src="//jsfiddle.net/u94ns8jc/1/embedded/result/?menuColor=f0f6ff&bodyColor=f0f6ff&fontColor=3079f4&accentColor=3079f4" allowfullscreen="allowfullscreen" frameborder="0"></iframe>
        </div>


        <h3>2. Default without options
            <button class="pure-button button-xsmall" type="button" @click="example1Content=!example1Content">
                <span v-if="!example1Content">Update with additional content</span>
                <span v-if="example1Content">Hide additional content</span>
            </button>
        </h3>

        <div class="el1" v-bar  ref="example1El">
            <div class="el2">

            <div v-if="example1Content" >
            By examining data from the two volcanoes, Mr. Jones and his team suggested an alternative: The chemical signature, along with this double-track volcanism as it’s called, occurred three million years ago when the plates above the hot spot shifted direction, moving north. This shimmy rearranged zones of magma that are heated under different pressures in the shallower part of the mantle — when they cool, the volcanic rock that results reflects this difference. Previously stacked on top of one another, the movement of the plates exposed now geographically separates magma zones that fed the volcanoes individually. Mauna Loa, the biggest volcano on Earth — and one of the most active — covers half the Island of Hawaii. Just 35 miles to the northeast, Mauna Kea, known to native Hawaiians as Mauna a Wakea, rises nearly 14,000 feet above sea level. To them it represents a spiritual connection between our planet and the heavens above. These volcanoes, which have beguiled millions of tourists visiting the Hawaiian islands, have also plagued scientists with a long-running mystery: If they are so close together, how did they develop in two parallel tracks along the Hawaiian-Emperor chain formed over the same hot spot in the Pacific Ocean — and why are their chemical compositions so different? "We knew this was related to something much deeper, but we couldn’t see what,” said Tim Jones, an earth science Ph.D. student at Australian National University and the lead author of a paper published in Nature on Wednesday that may hold the answer. Mr. Jones and his colleagues developed a model that simulates what’s happening in our planet’s mantle, beneath the crust that we live on, offering a window to the center of the Earth — or close to it.<br><br>
            </div>


            Their study may one day allow a reconstruction of the history of the movement of Earth’s plates — and the processes linked to these movements over billions of years, like mass extinction events, diamond and oil deposits, and changes in climate. If you were to drill nearly 4,000 miles into the Earth, you’d reach its core, a ball of solid iron surrounded by liquid that scientists estimate is hotter than the sun. Before making it there, you’d hit the mantle — an 1,800-mile-thick layer of solid rock that can flow like a liquid, just substantially slower. This mantle is the reason plates move across the surface. It’s why we have continents, earthquakes and volcanoes. The closest anyone ever got to the mantle was a seven-mile-deep hole drilled into the crust on a peninsula in western Russia.
            But now we can better understand what’s happening below by looking at Mauna Kea and Mauna Loa, said Mr. Jones. The prevailing hypothesis has been that volcanoes like these two in Hawaii are chemical fingerprints of the Earth’s composition at the deep mantle, just at the border of its core.
            Scientists have seismic evidence that the deep part of the mantle is a graveyard where long ago slabs of earth were subducted, or thrust underneath one another, creating separate regions with different chemical compositions that eventually made their way to the surface in a hot mantle plume, or upwelling, as the core heated the rock into magma.

            <br><img src="https://unsplash.it/1000/500" width="250" height="125"> <br>

            But that didn’t explain the separate tracks along which the volcanoes formed.


            </div>
        </div>


        <h3>3. Option <code>preventParentScroll</code> set to <code>true</code>.
            <button class="pure-button button-xsmall" type="button" @click="example2Content=!example2Content">
                <span v-if="!example2Content">Update with additional content</span>
                <span v-if="example2Content">Hide additional content</span>
            </button>
        </h3>

        <div class="el1" v-bar="{preventParentScroll: true}">
            <div class="el2">
            <div v-if="example2Content">
            Giant larvaceans are one important group we need to learn more about.” In the past, other scientists have tried studying giant larvaceans in the laboratory. But these efforts always failed because the animals’ houses were too fragile to be harvested and collected specimens were never able to build houses outside the ocean.To study the zooplankton in their natural habitat, Dr. Katija and her collaborators developed a new deep-sea imaging instrument, called DeepPIV, which they paired with a remotely operated vehicle. DeepPIV projects a sheet of laser light that cuts straight through a larvacean’s mucus house. A high-definition camera on the remotely operated vehicle can then capture the inner pumping mechanisms illuminated by the laser.<br><br>
            </div>
            Swimming hundreds of feet beneath the ocean’s surface in many parts of the world are prolific architects called giant larvaceans. These zooplankton are not particularly giant themselves (they resemble tadpoles and are about the size of a pinkie finger), but every day, they construct one or more spacious "houses” that can exceed three feet in length. The houses are transparent mucus structures that encase the creatures inside. Giant larvaceans beat their tails to pump seawater through these structures, which filter tiny bits of dead or drifting organic matter for the animals to eat. When their filters get clogged, the larvaceans abandon ship and construct a new house. Laden with debris from the water column, old houses rapidly sink to the seafloor. In a study published in Science Advances on Wednesday, scientists near California’s Monterey Bay have found that, through this process, giant larvaceans can filter all of the bay’s water from about 300 to 1,000 feet deep in less than two weeks, making them the fastest known zooplankton filter feeders. In doing so, the creatures help transfer carbon that has been removed from the atmosphere by photosynthesizing organisms to the deep sea, where it can be buried and stored long term. And given their abundance in other parts of the world, these organisms likely play a crucial role in the global carbon cycle. When it comes to the flow of carbon in the ocean, "we don’t know nearly as much as we should,” said Kakani Katija, a principal engineer at the Monterey Bay Aquarium Research Institute and the study’s lead author. "If we really want to understand how the system works, we have to look at all the players involved.


            </div>
        </div>



        <h3>4. Option <code>overrideFloatingScrollbar</code> set to <code>false</code>. Difference visible only on touch devices and on IE &amp; Edge with <code>-ms-autohiding-scrollbar</code> style.</h3>

        <div class="el1  mod-ms-autohiding" v-bar="{overrideFloatingScrollbar: false}">
            <div class="el2">
            Giant larvaceans are one important group we need to learn more about.” In the past, other scientists have tried studying giant larvaceans in the laboratory. But these efforts always failed because the animals’ houses were too fragile to be harvested and collected specimens were never able to build houses outside the ocean.To study the zooplankton in their natural habitat, Dr. Katija and her collaborators developed a new deep-sea imaging instrument, called DeepPIV, which they paired with a remotely operated vehicle. DeepPIV projects a sheet of laser light that cuts straight through a larvacean’s mucus house. A high-definition camera on the remotely operated vehicle can then capture the inner pumping mechanisms illuminated by the laser.Swimming hundreds of feet beneath the ocean’s surface in many parts of the world are prolific architects called giant larvaceans. These zooplankton are not particularly giant themselves (they resemble tadpoles and are about the size of a pinkie finger), but every day, they construct one or more spacious "houses” that can exceed three feet in length. The houses are transparent mucus structures that encase the creatures inside. Giant larvaceans beat their tails to pump seawater through these structures, which filter tiny bits of dead or drifting organic matter for the animals to eat. When their filters get clogged, the larvaceans abandon ship and construct a new house. Laden with debris from the water column, old houses rapidly sink to the seafloor. In a study published in Science Advances on Wednesday, scientists near California’s Monterey Bay have found that, through this process, giant larvaceans can filter all of the bay’s water from about 300 to 1,000 feet deep in less than two weeks, making them the fastest known zooplankton filter feeders. In doing so, the creatures help transfer carbon that has been removed from the atmosphere by photosynthesizing organisms to the deep sea, where it can be buried and stored long term. And given their abundance in other parts of the world, these organisms likely play a crucial role in the global carbon cycle. When it comes to the flow of carbon in the ocean, "we don’t know nearly as much as we should,” said Kakani Katija, a principal engineer at the Monterey Bay Aquarium Research Institute and the study’s lead author. "If we really want to understand how the system works, we have to look at all the players involved.
            </div>
        </div>




        <h3>5. Option <code>useScrollbarPseudo</code> set to <code>true</code> It works only on Chrome &amp; Safari. Inspect <code>el2</code> to see the difference.</h3>

        <div class="el1" v-bar="{el2Class: 'vb-content-scrollbar-pseudo', useScrollbarPseudo: true}">
            <div class="el2">
            Giant larvaceans are one important group we need to learn more about.” In the past, other scientists have tried studying giant larvaceans in the laboratory. But these efforts always failed because the animals’ houses were too fragile to be harvested and collected specimens were never able to build houses outside the ocean.To study the zooplankton in their natural habitat, Dr. Katija and her collaborators developed a new deep-sea imaging instrument, called DeepPIV, which they paired with a remotely operated vehicle. DeepPIV projects a sheet of laser light that cuts straight through a larvacean’s mucus house. A high-definition camera on the remotely operated vehicle can then capture the inner pumping mechanisms illuminated by the laser.Swimming hundreds of feet beneath the ocean’s surface in many parts of the world are prolific architects called giant larvaceans. These zooplankton are not particularly giant themselves (they resemble tadpoles and are about the size of a pinkie finger), but every day, they construct one or more spacious "houses” that can exceed three feet in length. The houses are transparent mucus structures that encase the creatures inside. Giant larvaceans beat their tails to pump seawater through these structures, which filter tiny bits of dead or drifting organic matter for the animals to eat. When their filters get clogged, the larvaceans abandon ship and construct a new house. Laden with debris from the water column, old houses rapidly sink to the seafloor. In a study published in Science Advances on Wednesday, scientists near California’s Monterey Bay have found that, through this process, giant larvaceans can filter all of the bay’s water from about 300 to 1,000 feet deep in less than two weeks, making them the fastest known zooplankton filter feeders. In doing so, the creatures help transfer carbon that has been removed from the atmosphere by photosynthesizing organisms to the deep sea, where it can be buried and stored long term. And given their abundance in other parts of the world, these organisms likely play a crucial role in the global carbon cycle. When it comes to the flow of carbon in the ocean, "we don’t know nearly as much as we should,” said Kakani Katija, a principal engineer at the Monterey Bay Aquarium Research Institute and the study’s lead author. "If we really want to understand how the system works, we have to look at all the players involved.
            </div>
        </div>


        <h3>6. Choppy but performant. Options <code>scrollThrottle</code> and <code>draggerThrottle</code> set to <code>100</code>.</h3>

        <div class="el1  mod-ms-autohiding" v-bar="{scrollThrottle: 100, draggerThrottle: 100, }">

            <div class="el2">

            These volcanoes, which have beguiled millions of tourists visiting the Hawaiian islands, have also plagued scientists with a long-running mystery: If they are so close together, how did they develop in two parallel tracks along the Hawaiian-Emperor chain formed over the same hot spot in the Pacific Ocean — and why are their chemical compositions so different? "We knew this was related to something much deeper, but we couldn’t see what,” said Tim Jones, an earth science Ph.D. student at Australian National University and the lead author of a paper published in Nature on Wednesday that may hold the answer. Mr. Jones and his colleagues developed a model that simulates what’s happening in our planet’s mantle, beneath the crust that we live on, offering a window to the center of the Earth — or close to it. Their study may one day allow a reconstruction of the history of the movement of Earth’s plates — and the processes linked to these movements over billions of years, like mass extinction events, diamond and oil deposits, and changes in climate. If you were to drill nearly 4,000 miles into the Earth, you’d reach its core, a ball of solid iron surrounded by liquid that scientists estimate is hotter than the sun. Before making it there, you’d hit the mantle — an 1,800-mile-thick layer of solid rock that can flow like a liquid, just substantially slower. This mantle is the reason plates move across the surface. It’s why we have continents, earthquakes and volcanoes. The closest anyone ever got to the mantle was a seven-mile-deep hole drilled into the crust on a peninsula in western Russia. But now we can better understand what’s happening below by looking at Mauna Kea and Mauna Loa, said Mr. Jones. The prevailing hypothesis has been that volcanoes like these two in Hawaii are chemical fingerprints of the Earth’s composition at the deep mantle, just at the border of its core. Scientists have seismic evidence that the deep part of the mantle is a graveyard where long ago slabs of earth were subducted, or thrust underneath one another, creating separate regions with different chemical compositions that eventually made their way to the surface in a hot mantle plume, or upwelling, as the core heated the rock into magma.But that didn’t explain the separate tracks along which the volcanoes formed. By examining data from the two volcanoes, Mr. Jones and his team suggested an alternative: The chemical signature, along with this double-track volcanism as it’s called, occurred three million years ago when the plates above the hot spot shifted direction, moving north. This shimmy rearranged zones of magma that are heated under different pressures in the shallower part of the mantle — when they cool, the volcanic rock that results reflects this difference. Previously stacked on top of one another, the movement of the plates exposed now geographically separates magma zones that fed the volcanoes individually.

            </div>
        </div>



        <h3>7. Dynamic Container</h3>

        <button class="pure-button" type="button" @click="example6Show=!example6Show">
            Show/hide container with Vuebar element
        </button>

        <br><br>

        <div>

            <transition name="fade">
            <div class="el1" v-bar v-if="example6Show">
                <div class="el2">

                These volcanoes, which have beguiled millions of tourists visiting the Hawaiian islands, have also plagued scientists with a long-running mystery: If they are so close together, how did they develop in two parallel tracks along the Hawaiian-Emperor chain formed over the same hot spot in the Pacific Ocean — and why are their chemical compositions so different? "We knew this was related to something much deeper, but we couldn’t see what,” said Tim Jones, an earth science Ph.D. student at Australian National University and the lead author of a paper published in Nature on Wednesday that may hold the answer. Mr. Jones and his colleagues developed a model that simulates what’s happening in our planet’s mantle, beneath the crust that we live on, offering a window to the center of the Earth — or close to it. Their study may one day allow a reconstruction of the history of the movement of Earth’s plates — and the processes linked to these movements over billions of years, like mass extinction events, diamond and oil deposits, and changes in climate. If you were to drill nearly 4,000 miles into the Earth, you’d reach its core, a ball of solid iron surrounded by liquid that scientists estimate is hotter than the sun. Before making it there, you’d hit the mantle — an 1,800-mile-thick layer of solid rock that can flow like a liquid, just substantially slower. This mantle is the reason plates move across the surface. It’s why we have continents, earthquakes and volcanoes. The closest anyone ever got to the mantle was a seven-mile-deep hole drilled into the crust on a peninsula in western Russia. But now we can better understand what’s happening below by looking at Mauna Kea and Mauna Loa, said Mr. Jones. The prevailing hypothesis has been that volcanoes like these two in Hawaii are chemical fingerprints of the Earth’s composition at the deep mantle, just at the border of its core. Scientists have seismic evidence that the deep part of the mantle is a graveyard where long ago slabs of earth were subducted, or thrust underneath one another, creating separate regions with different chemical compositions that eventually made their way to the surface in a hot mantle plume, or upwelling, as the core heated the rock into magma.But that didn’t explain the separate tracks along which the volcanoes formed. By examining data from the two volcanoes, Mr. Jones and his team suggested an alternative: The chemical signature, along with this double-track volcanism as it’s called, occurred three million years ago when the plates above the hot spot shifted direction, moving north. This shimmy rearranged zones of magma that are heated under different pressures in the shallower part of the mantle — when they cool, the volcanic rock that results reflects this difference. Previously stacked on top of one another, the movement of the plates exposed now geographically separates magma zones that fed the volcanoes individually.


                </div>
            </div>
            </transition>

        </div>



        <h3>8. Scrollbar invisible. Content is not tall enough.</h3>

        <div class="el1" v-bar>
            <div class="el2">

                <div> The prevailing hypothesis has been that volcanoes like these two in Hawaii are chemical fingerprints of the Earth’s composition at the deep mantle, just at the border of its core.</div>

            </div>
        </div>
           
           
           
           <h3>9. Max-Height example</h3>
                   <div class="el1" v-bar  ref="example1El">
            <div class="el2" style="max-height:200px">

            <div v-if="example1Content" >
            By examining data from the two volcanoes, Mr. Jones and his team suggested an alternative: The chemical signature, along with this double-track volcanism as it’s called, occurred three million years ago when the plates above the hot spot shifted direction, moving north. This shimmy rearranged zones of magma that are heated under different pressures in the shallower part of the mantle — when they cool, the volcanic rock that results reflects this difference. Previously stacked on top of one another, the movement of the plates exposed now geographically separates magma zones that fed the volcanoes individually. Mauna Loa, the biggest volcano on Earth — and one of the most active — covers half the Island of Hawaii. Just 35 miles to the northeast, Mauna Kea, known to native Hawaiians as Mauna a Wakea, rises nearly 14,000 feet above sea level. To them it represents a spiritual connection between our planet and the heavens above. These volcanoes, which have beguiled millions of tourists visiting the Hawaiian islands, have also plagued scientists with a long-running mystery: If they are so close together, how did they develop in two parallel tracks along the Hawaiian-Emperor chain formed over the same hot spot in the Pacific Ocean — and why are their chemical compositions so different? "We knew this was related to something much deeper, but we couldn’t see what,” said Tim Jones, an earth science Ph.D. student at Australian National University and the lead author of a paper published in Nature on Wednesday that may hold the answer. Mr. Jones and his colleagues developed a model that simulates what’s happening in our planet’s mantle, beneath the crust that we live on, offering a window to the center of the Earth — or close to it.<br><br>
            </div>


            Their study may one day allow a reconstruction of the history of the movement of Earth’s plates — and the processes linked to these movements over billions of years, like mass extinction events, diamond and oil deposits, and changes in climate. If you were to drill nearly 4,000 miles into the Earth, you’d reach its core, a ball of solid iron surrounded by liquid that scientists estimate is hotter than the sun. Before making it there, you’d hit the mantle — an 1,800-mile-thick layer of solid rock that can flow like a liquid, just substantially slower. This mantle is the reason plates move across the surface. It’s why we have continents, earthquakes and volcanoes. The closest anyone ever got to the mantle was a seven-mile-deep hole drilled into the crust on a peninsula in western Russia.
            But now we can better understand what’s happening below by looking at Mauna Kea and Mauna Loa, said Mr. Jones. The prevailing hypothesis has been that volcanoes like these two in Hawaii are chemical fingerprints of the Earth’s composition at the deep mantle, just at the border of its core.
            Scientists have seismic evidence that the deep part of the mantle is a graveyard where long ago slabs of earth were subducted, or thrust underneath one another, creating separate regions with different chemical compositions that eventually made their way to the surface in a hot mantle plume, or upwelling, as the core heated the rock into magma.

            <br><img src="https://unsplash.it/1000/500" width="250" height="125"> <br>

            But that didn’t explain the separate tracks along which the volcanoes formed.


            </div>
        </div>




        </div>







        <h2 class="container-title"  id="credits">Contributing &amp; Credits</h2>
        <div class="container">


            <h3 class="first">Contributing</h3>

            <p>There's still a lot that can be introduced to Vuebar. If you're willing you can help out with the issues below.</p>

            <ul>


                <li>
                    <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
                    [High priority] Support for horizontal scrolling.
                </li>

                <li>
                    <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
                    [Medium priority] Support for Vue 1.x.
                </li>

                <li>
                    <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
                    [Medium priority] Automated tests for pull requests &amp; general development.
                </li>

                <li>
                    <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
                    [Medium priority] Support for compatibility of Vuebar element classes with component scoped CSS selectors. (Is it even possible?).
                </li>

                <li>
                    <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
                    [Medium priority] <code>preventParentScroll</code> supporting scrolling with scrolling while dragging cursor, touch scrolling and also keyboard keys (space, shift+space, arrows, page up, pagedown). Maybe with options which ones to prevent and which ones to leave out.
                </li>

                <li>
                    <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
                    [Low priority] Support for scrollbar refresh on orientationchange event.
                </li>

                <li>
                    <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
                    [Low priority] Support for dragging dragger using touch events.
                </li>

                <li>
                    <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
                    [Low priority] Utility methods like; scroll to top/bottom/element/etc., force disable scrolling, dragger active class flash. And (disableable) events emit for e.g. when content was scrolled to top/bottom/element/etc.
                </li>

                <li>
                    <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" width="16" height="16"><path color="#000" d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 L 19.28125 5.28125 z"/></svg>
                    [Low priority] <code>useScrollbarPseudo</code> styles added with custom class instead of <code>el1Class</code>.
                </li>

            </ul>

            <h3>Credits</h3>

            <p>Created by <a href="https://serafin.io/">Dominik Serafin</a> for <a href="https://ggather.com">GGather.com</a>. <br>Inspired by <a href="https://jamesflorentino.github.io/nanoScrollerJS/">nanoScroller</a> and <a href="http://automattic.github.io/antiscroll/">Antiscroll</a>.</p>




        </div>






    </div>





    </div>


    </div>

    </div>

    <!-- Vue -->
    <script src="https://unpkg.com/vue"></script>
    <script src="./vuebar.js"></script>

    <!-- App JS -->
    <script>
        Vue.config.devtools = true;
        Vue.config.performance = true;
        var app = new Vue({
            el: '#app',
            data: {
                example1Content: false,
                example2Content: false,
                example3Content: false,
                example4Content: false,

                example6Show: false,
            },
        })

        //console.dir( app.$vuebar.getState(app.$refs.example1El) );

    </script>


    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

      ga('create', 'UA-46688343-14', 'auto');
      ga('send', 'pageview');

    </script>


</body>
</html>
